﻿/**
 * Reboulder - Partial Boulder Dash clone
 * Jesús Sagra, 2014
 * 
 * Item class: item to get new level
 * 
 * Version    Date     Changes
 * -----------------------------------------------------
 *  0.01   06-mar-2015  Constructor, Open IsOpen
 */

class Door : Sprite
{
    private bool open;

    public Door(int x , int y) : base (x,y)
    {
        open = false;
        Round = false;
        Crossable = true;
        SpriteImage = new Image("data/wall.png");
    }


    public bool IsOpen()
    {
        return open;
    }


    public void Open()
    {
        SpriteImage = new Image("data/door.png");
        open = true;
    }
}